/*
 * AppPlatformVideoModel.java
 * classes : com.sohu.sohuvideo.models.AppPlatformVideoModel
 * @author xiangyutian
 * V 4.5.0
 * Create at 2014-4-30 上午11:05:02
 */
package common.com.androidbase.datarequest;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 剧集信息
 *
 * @author shaohualiu
 */
public class AppPlatformVideoModel implements Parcelable {

    private long vid;// 视频id
    private String show_name = "default";// 视频名称
    private String url_html5;// H5地址，需跳网页的视频才有
    private int site;
    private int hasmore;

    // 新的搜索接口增加字段
    private String video_name; // 视频名称
    private String video_first_name;
    private String video_sub_name;
    private int video_order; // 剧集顺序
    private int is_update;
    private CornerMark corner_mark;

    public AppPlatformVideoModel() {
    }

    public int getSite() {
        return site;
    }

    public void setSite(int site) {
        this.site = site;
    }

    public long getVid() {
        return vid;
    }

    public void setVid(long vid) {
        this.vid = vid;
    }

    public String getShow_name() {
        return show_name;
    }

    public void setShow_name(String show_name) {
        this.show_name = show_name;
    }

    public String getUrl_html5() {
        return url_html5;
    }

    public void setUrl_html5(String url_html5) {
        this.url_html5 = url_html5;
    }

    public String getVideo_name() {
        return video_name;
    }

    public void setVideo_name(String video_name) {
        this.video_name = video_name;
    }

    public String getVideo_first_name() {
        return video_first_name;
    }

    public void setVideo_first_name(String video_first_name) {
        this.video_first_name = video_first_name;
    }

    public String getVideo_sub_name() {
        return video_sub_name;
    }

    public void setVideo_sub_name(String video_sub_name) {
        this.video_sub_name = video_sub_name;
    }

    public int getVideo_order() {
        return video_order;
    }

    public void setVideo_order(int video_order) {
        this.video_order = video_order;
    }

    public int getIs_update() {
        return is_update;
    }

    public void setIs_update(int is_update) {
        this.is_update = is_update;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel out, int flags) {
        out.writeLong(vid);
        out.writeString(show_name);
        out.writeString(url_html5);
        out.writeInt(site);

        out.writeString(video_name);
        out.writeString(video_first_name);
        out.writeString(video_sub_name);
        out.writeInt(video_order);
        out.writeInt(is_update);

    }

    public static final Creator<AppPlatformVideoModel> CREATOR = new Creator<AppPlatformVideoModel>() {
        public AppPlatformVideoModel createFromParcel(Parcel in) {
            return new AppPlatformVideoModel(in);
        }

        public AppPlatformVideoModel[] newArray(int size) {
            return new AppPlatformVideoModel[size];
        }
    };

    private AppPlatformVideoModel(Parcel in) {
        vid = in.readLong();
        show_name = in.readString();
        url_html5 = in.readString();
        site = in.readInt();

        video_name = in.readString();
        video_first_name = in.readString();
        video_sub_name = in.readString();
        video_order = in.readInt();
        is_update = in.readInt();
    }

    public boolean hasMore() {
        return hasmore == 0 ? false : true;
    }

    public int getHasmore() {
        return hasmore;
    }

    public void setHasmore(int hasmore) {
        this.hasmore = hasmore;
    }

    public CornerMark getCorner_mark() {
        return corner_mark;
    }

    public void setCorner_mark(CornerMark corner_mark) {
        this.corner_mark = corner_mark;
    }
}
